<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../css/login.css">
    <title>Login</title>

</head>

<body>

<div class="box">
    <div class="left"></div>
    <div class="right">
        <h4>登 录</h4>
        <form th:action="@{/login}">
            <input class="acc" type="text" name="name" placeholder="用户名">
            <input class="acc" type="password" name="password" placeholder="密码">
            <input id="login" class="submit" type="submit" value="login">
        </form>
        <div class="fn1">
            <p style="color:red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
        </div>
        <div class="fn2" >
            <a th:href="@{/page/register}">注册账号</a>
        </div>
    </div>
</div>
</body>

</html>